import http from "@/utils/http";

import type { CommentData } from "@/tiptap/extensions/CommentPlugin";
export interface MergedCommentDocument {
  noteId: string
  userId: string
  comments: CommentData[]
}

export const commentinfo = {
   getComments:(noteId: string, userId: string)=> {
    return http.get('/student-comments/get', {
      noteId,
      userId
    }
  );
  },
    saveComments:(data:MergedCommentDocument )=>{ 
        return http.post('/student-comments/save', {data});
    },
} 


